#include "contact.h"

int main() {
    int input=0;
    Contact contact;
    Init_Contact(&contact);
    do {
        printf("Please select your operation\n");
        menu();
        scanf_s("%d",&input);
        switch (input) {
            case ADD:
                Add_people(&contact);
                break;
            case DEL:
                Del_people(&contact);
                break;
            case SEARCH:
                Search_numbers(&contact);
                break;
            case MODIFY:
                Modify_information(&contact);
                break;
            case SHOW:
                Show_numbers(&contact);
            case SORT:
                Sort_people(&contact);
                break;
            case SAVE:
                Save_contact(&contact);
            case EXIT:
                Destroy_contact(&contact);
                printf("leave contact\n");
                break;
            default:
                printf("selecting error\n");
                break;
        }
    } while (input);
    return 0;
}
